class Point<T> {
    x: T
    y: T
    z: T

    constructor(x: T, y: T, z: T) {
        this.x = x
        this.y = y
        this.z = z
    }
}


const p1 = new Point(12, 14, 34)
const p2 = new Point<string>('12', '14', '34')
const p3: Point<string> = new Point('12', '14', '34')


const names1: string[] = ['a', 'b']
const names2: Array<string> = ['a', 'b'] // 不推荐使用（react jsx）

export { }